import request from '@/utils/request'

// 查询订阅详情列表
export function listDetail(query) {
  return request({
    url: '/slope/detail/list',
    method: 'get',
    params: query
  })
}

// 查询订阅详情详细
export function getDetail(subscribeDetailId) {
  return request({
    url: '/slope/detail/getInfo/' + subscribeDetailId,
    method: 'get'
  })
}

// 新增订阅详情
export function addDetail(data) {
  return request({
    url: '/slope/detail/add',
    method: 'post',
    data: data
  })
}


// 删除订阅详情
export function delDetail(subscribeDetailId) {
  return request({
    url: '/slope/detail/' + subscribeDetailId,
    method: 'post'
  })
}

// 导出订阅详情
export function exportDetail(query) {
  return request({
    url: '/slope/detail/export',
    method: 'get',
    params: query
  })
}